
<div *ngIf="catalog">
    <h2><span jhiTranslate="studyng6App.catalog.detail.title">Catalog</span> {{catalog.id}}</h2>
    <hr>
    <jhi-alert-error></jhi-alert-error>
    <dl class="row-md jh-entity-details">
        <dt><span jhiTranslate="studyng6App.catalog.catalog">Catalog</span></dt>
        <dd>
            <span>{{catalog.catalog}}</span>
        </dd>
        <dt><span jhiTranslate="studyng6App.catalog.content">Content</span></dt>
        <dd>
            <span>{{catalog.content}}</span>
        </dd>
        <dt><span jhiTranslate="studyng6App.catalog.pCatalog">P Catalog</span></dt>
        <dd>
            <span>{{catalog.pCatalog}}</span>
        </dd>
        <dt><span jhiTranslate="studyng6App.catalog.bookId">Book Id</span></dt>
        <dd>
            <div *ngIf="catalog.bookId">
                <a [routerLink]="['/book-basic', catalog.bookId?.id]">{{catalog.bookId?.id}}</a>
            </div>
        </dd>
    </dl>

    <button type="submit"
            (click)="previousState()"
            class="btn btn-info">
        <span class="fa fa-arrow-left"></span>&nbsp;<span jhiTranslate="entity.action.back"> Back</span>
    </button>

    <button type="button"
            [routerLink]="['/', { outlets: { popup: 'catalog/'+ catalog.id + '/edit'} }]"
            replaceUrl="true"
            queryParamsHandling="merge"
            class="btn btn-primary">
        <span class="fa fa-pencil"></span>&nbsp;<span jhiTranslate="entity.action.edit"> Edit</span>
    </button>
</div>
